﻿using LibPlug.Interface;
using LibPlug.Model;

namespace BiliBiliLiveDanMuTool.Plugins
{
    public class DanMuPluginsManager : BasePluginsManager<IPlug>
    {
        protected override void CallBack()
        {
            for(int i =0;i<Plugins.Count;i++)
            {
                Plugins[i].Info = Infos[i];
            }
        }
        
        public void broadcastReceiveMesage(DanMuMessageModel model)
        {
            foreach (var item in Plugins)
            {
                item.ReceiveMessage(model);
            }
        }
    }
}
